import { request } from 'utils/request'
// 获取验证码
export const getCode = (phone) => {
  return request({
    url: `/user/passport/sendCode/${phone}`,
    method: 'get'
  })
}
// 注册
export const register = (data) => {
  return request({
    url: '/user/passport/register',
    method: 'post',
    data
  })
}
